<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@page import="dao.NoteDao" import="util.JsonHelp" %>    
<%
request.setCharacterEncoding("utf-8");

String json;
JsonHelp render = new JsonHelp();
int id = Integer.valueOf(request.getParameter("id"));

NoteDao dao = new NoteDao();
int i = dao.delete(id);
if(i>0){
	json="{\"status\":1,\"msg\":\"删除成功\"}";
}else{
	json="{\"status\":0,\"msg\":\"删除失败\"}";
}
render.renderJson(response, json); 

%>